#!/Users/hepeng/.pyenv/shims/python
# -*- coding: utf-8 -*-
# @Time    : 2020/9/4 11:11 上午
# @Author  : hepeng
# @Site    : 
# @File    : BMCInstallDomain.py

from __future__ import unicode_literals
import os

class BMCInstallDomain(object):
    def __init__(self, cnf_name='my.cnf'):
        self._install_base_path = '/opt/zyjmonitor/rgn/server'
        self._ext_db_conf_file = 'ext/database-configuration'
        self._db_cnf_file_path = os.path.join(self._install_base_path, self._ext_db_conf_file)
        self._cnf_template_path = os.path.join(self._db_cnf_file_path, cnf_name)

    def cnf_template_path(self):
        return self._cnf_template_path